﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MySql.Data.MySqlClient;

namespace aerowan.server.Database
{
    public class DAOManager
    {
        public static MySqlConnection GetConnection()
        {
            return new MySqlConnection("Server=127.0.0.1;Database=aerowan;Uid=aerowan;Pwd=aerowan;");
        }

        public static void CloseConnection(MySqlConnection con)
        {
            if (con == null) return;
            try
            {
                con.Close();
            }
            catch (Exception) { }
        }
    }
}
